package com.neo.common.feign;

import com.neo.common.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
/**
 * 用于远程调用goods服务
 */
//@FeignClient(value = "goods-service",path = "/api/v1/goods",url = "http://localhost:8082")
@FeignClient(value = "goods",path = "/api/v1/goods")
//@FeignClient(value = "goods-service",path = "/api/v1/goods",url = "${goods-service.url}")
public interface GoodsClient {

    @GetMapping("findAll")
    List<Goods> findAll();
}
